Use absl::uint128 for AES random number generator
authorBenjamin Barenblat <bbaren@google.com>
Fri, 25 Feb 2022 01:39:43 +0000 (01:39 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Fri, 25 Feb 2022 01:39:43 +0000 (01:39 +0000)
commit97e1c3a8c094a5855afc0ee1ab032318549176db
tree223217c85760c219f65179f6b5deb39df77c7775
parenta15a35c8565adb8929815172dd71db811ca55808
Use absl::uint128 for AES random number generator

Forwarded: yes
Applied-Upstream: https://github.com/abseil/abseil-cpp/commit/b06e719ee985ecd63e0dffbc68499549216f817f

Replace randen’s internal 128-bit integer struct, u64x2, with
absl::uint128. This eliminates some code and improves support for
big-endian platforms.

The author works at Google. Upstream applied this patch as Piper
revision 383475671 and exported it to GitHub; the Applied-Upstream URL
above points to the exported commit.

Gbp-Pq: Name big-endian-random.diff
absl/random/internal/BUILD.bazel
absl/random/internal/randen_hwaes.cc
absl/random/internal/randen_slow.cc